package com.rfid.entityMapper;

import com.entitymapper.field.FieldMapperToWrite;
import com.entitymapper.field.ResultSet;
import com.teatrace.model.TraceInfo;

public class TraceInfoFieldMapperToWrite implements FieldMapperToWrite{
	@Override
	public void mappering(ResultSet rs, Object object) {
		TraceInfo info = (TraceInfo) object;
		rs.setValue("number", info.getNumber());
		rs.setValue("address", info.getAddress());
		rs.setDate("recordTime", info.getRecordTime());
		rs.setValue("description", info.getDescription());
	}

}
